<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('新增项目收益')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-profit-add">
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">日期：</label>
            <div class="col-sm-8">
                <input name="dateInfo" id="dateInfo" class="form-control" type="text" required autocomplete="off">
            </div>
        </div>
        <!--            <div class="form-group">    -->
        <!--                <label class="col-sm-3 control-label is-required">贷超：</label>-->
        <!--                <div class="col-sm-8">-->
        <!--                    <input name="dcProfit" class="form-control" type="text" required>-->
        <!--                </div>-->
        <!--            </div>-->
        <!--            <div class="form-group">    -->
        <!--                <label class="col-sm-3 control-label is-required">助贷：</label>-->
        <!--                <div class="col-sm-8">-->
        <!--                    <input name="zdProfit" class="form-control" type="text" required>-->
        <!--                </div>-->
        <!--            </div> -->

        <div class="form-group">
            <label class="col-sm-3 control-label is-required">产品uv收益：</label>
            <div class="col-sm-8">
                <input name="prodUvProfit" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">联登收益：</label>
            <div class="col-sm-8">
                <input name="prodUnionProfit" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">表单收益：</label>
            <div class="col-sm-8">
                <input name="pushFormProfit" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">推送收益：</label>
            <div class="col-sm-8">
                <input name="pushSpecialProfit" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">风控成本：</label>
            <div class="col-sm-8">
                <input name="riskCostAmount" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">线索成本：</label>
            <div class="col-sm-8">
                <input name="sourceCostAmount" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">uv成本：</label>
            <div class="col-sm-8">
                <input name="channelUvCostAmount" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">注册成本：</label>
            <div class="col-sm-8">
                <input name="channelRegisterCostAmount" class="form-control" type="text" required>
            </div>
        </div>

    </form>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    var prefix = ctx + "profit/profit"
    $("#form-profit-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-profit-add').serialize());
        }
    }

    layui.use('laydate', function () {
        var laydate = layui.laydate;

        laydate.render({
            elem: '#dateInfo',
            type: 'date',
        });
    });


</script>
</body>
</html>